package com.jxc.service.admin.impl;

import com.jxc.dao.admin.SupplierDao;
import com.jxc.entity.admin.Supplier;
import com.jxc.service.admin.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 */
@Service
public class SupplierServiceImpl implements SupplierService {

    @Autowired
    private SupplierDao supplierDao;

    @Override
    public int add(Supplier supplier) {
        return supplierDao.add(supplier);
    }

    @Override
    public Integer getTotal(Map map) {
        return supplierDao.getTotal(map);
    }

    @Override
    public List<Supplier> getList(Map map) {
        return supplierDao.findList(map);
    }

    @Override
    public int deleteByIds(String ids) {
        return supplierDao.delete(ids);
    }

    @Override
    public int edit(Supplier supplier) {
        return supplierDao.edit(supplier);
    }

    @Override
    public Supplier getSupplierById(String id) {
        return supplierDao.getSupplierById(id);
    }
}
